export type Pagination = {
  page: number
  perPage: number
  total: number
}

export type Sorting = {
  sortBy: 'project_owner' | 'team' | 'created_at'
  sortingOrder: 'asc' | 'desc' | null
}

export type ActivityStatus = 'unpublished' | 'recruiting' | 'active' | 'ended'

export type Activity = {
  id?: number
  name: string
  picUrl?: string
  description?: string
  status?: ActivityStatus | null
  lotteryType?: string
  maxParticipants?: number
  qrCodeUrl?: string
  qrCodeTicket?: string
  lotteryPrizes?: Array<Prize>
}

export type Prize = {
  id?: number
  activityId?: number
  prizeName?: string
  prizeType?: string
  description?: string
  prizeQuantity?: number
}

export type Record = {
  id?: number
  nickname?: string
  headimgurl?: string
  prizeName?: string
  lotteryState?: string
  prizeType?: string
  description?: string
}

export type Filters = {
  activityId?: string
  prizeId?: string
  drawNumber?: string
  pageNumber?: number,
  pageSize?: number
}
